package com.reggie.console.annotation;

import com.reggie.console.enums.ReggieRole;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>权限校验注解</p>
 *
 * @author yth
 * @since 2023-06-10-16:16
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthRule {

    /**
     * @return 拥有权限的角色
     */
    ReggieRole[] roles() default {};

}
